﻿using Common.ParameterLocator;
using SpecFlowTfsLinker.Entities;
using SpecFlowTfsLinker.SpecFlowFile;

namespace SpecFlowTfsLinker.Tools
{
    public class SpecFlowVsHelper
    {
        private readonly UserStory _us;

        public SpecFlowVsHelper(UserStory us)
        {
            _us = us;
            FeatureFile = new FeatureFile(us);
            StepDefinitionFile = new StepDefinitionFile(us);
        }

        public string FolderName
        {
            get { return string.Format(ServiceParameter.Instance.Parameter.FolderName, _us.Id); }
        }

        public ISpecFlowFile FeatureFile { get; set; }

        public ISpecFlowFile StepDefinitionFile { get; set; }
    }
}